home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Action 1998 November
/
PC Action Issue 71 (Xenia) (Novembre 1998).iso
/
kernels
/
makedisks.12
< prev
next >
Wrap
Text File
|
1998-05-17
|
803b
|
32 lines
#!/bin/sh
#
# This makes a bootkernel disk in /dev/fd0 from a kernel image.
#
# Run this in a directory containing the kernels you're gonna use, and a
# subdirectory with a master image of the bootkernel disk.
#
# This is the command to use:
#
# makedisk kernel_image disk_size
# ^^ ^^^^^^^^^ This is 1440 or 1200
# ^^^^^ This is the name (and maybe path to) the kernel you're going
# to use, such as scsinet/zImage.
#
mkdisk() {
if [ -r $1/zImage ]; then
makedisk $1/zImage 1200
elif [ -r $1/bzImage ]; then
makedisk $1/bzImage 1200
elif [ -r $1/vmlinuz ]; then
makedisk $1/vmlinuz 1200
fi
}
# We only slightly support 1.2 MB boot drives @ this point:
for dir in bare.i scsi.s net.i scsinet.s ; do
if [ -d $dir ]; then
mkdisk $dir
fi
done